package org.lex.tinyscript;

import java.io.Reader;
import java.util.Collection;

import org.lex.tinyscript.command.ScriptCommand;

public class TinyScriptExecutor {

	public void execute(Reader in) throws TinyScriptException {
		Collection<ScriptCommand> commands = null;
		commands = new ScriptParser().parse(in);
		for (ScriptCommand command : commands) {
			command.excute();
		}
	}
}
